#include <iostream>
using namespace std;

class Point{
private:
	int x, y;
public:
	Point(int _x=0, int_y=0):x(_x), y(_y){}
	void ShowPosition();
	Point operator + (const Point& p);
};

void Point::Show Position(){
	cout<<x<<" "<<y<<endl;
}

Point Point::operator+ (const Point& p){
Point temp(x + p.x, y + p.y);
return temp;
}

int main(void)
{
	Point p1(1, 2);
	Point p2(2, 1);
	Point P3=p1 + p2;
	p3.ShowPosition();

	return 0;
}